//
//  BinDingTextView.m
//  firstpoint
//
//  Created by 泽中 on 2017/7/18.
//  Copyright © 2017年 xzcysoft. All rights reserved.
//

#import "BinDingTextView.h"

@implementation BinDingTextView

- (instancetype)initWithFrame:(CGRect)frame {
    if (self = [super initWithFrame:frame]) {
        self.backgroundColor=[UIColor whiteColor];
        _textField=[[UITextField alloc]initWithFrame:CGRectMake(0, 0, self.mj_w-10, 45)];
        _textField.backgroundColor=[UIColor whiteColor];
//        _textField.textAlignment=2;
        _textField.textAlignment = NSTextAlignmentRight;
        [_textField setValue:[UIColor redColor] forKeyPath:@"_placeholderLabel.textColor"];

        [self addSubview:_textField];
        _titleLab=[[UILabel alloc]initWithFrame:CGRectMake(10, 0, 100, 45)];
        _titleLab.font=[UIFont systemFontOfSize:13];
        _textField.font=[UIFont systemFontOfSize:13];
        [_textField addSubview:_titleLab];
        UILabel*lab=[[UILabel alloc]initWithFrame:CGRectMake(0, 45, self.mj_w, 1)];
        lab.backgroundColor=LRRGBColor(229, 229, 231);
        [self addSubview:lab];
    }
    return self;
}
@end
